Optimal. Leaf size=172 \[ \frac{2 a^3 \tan (e+f x) (c-c \sec (e+f x))^n \text{Hypergeometric2F1}\left (1,n+\frac{1}{2},n+\frac{3}{2},1-\sec (e+f x)\right )}{f (2 n+1) \sqrt{a \sec (e+f x)+a}}+\frac{6 a^3 \tan (e+f x) (c-c \sec (e+f x))^n}{f (2 n+1) \sqrt{a \sec (e+f x)+a}}-\frac{2 a^3 \tan (e+f x) (c-c \sec (e+f x))^{n+1}}{c f (2 n+3) \sqrt{a \sec (e+f x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.145338, antiderivative size = 172, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.107, Rules used = {3912, 88, 65} \[ \frac{2 a^3 \tan (e+f x) (c-c \sec (e+f x))^n \, _2F_1\left (1,n+\frac{1}{2};n+\frac{3}{2};1-\sec (e+f x)\right )}{f (2 n+1) \sqrt{a \sec (e+f x)+a}}+\frac{6 a^3 \tan (e+f x) (c-c \sec (e+f x))^n}{f (2 n+1) \sqrt{a \sec (e+f x)+a}}-\frac{2 a^3 \tan (e+f x) (c-c \sec (e+f x))^{n+1}}{c f (2 n+3) \sqrt{a \sec (e+f x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3912
Rule 88
Rule 65
Rubi steps
\begin{align*} \int (a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))^n \, dx &=-\frac{(a c \tan (e+f x)) \operatorname{Subst}\left (\int \frac{(a+a x)^2 (c-c x)^{-\frac{1}{2}+n}}{x} \, dx,x,\sec (e+f x)\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=-\frac{(a c \tan (e+f x)) \operatorname{Subst}\left (\int \left (3 a^2 (c-c x)^{-\frac{1}{2}+n}+\frac{a^2 (c-c x)^{-\frac{1}{2}+n}}{x}-\frac{a^2 (c-c x)^{\frac{1}{2}+n}}{c}\right ) \, dx,x,\sec (e+f x)\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=\frac{6 a^3 (c-c \sec (e+f x))^n \tan (e+f x)}{f (1+2 n) \sqrt{a+a \sec (e+f x)}}-\frac{2 a^3 (c-c \sec (e+f x))^{1+n} \tan (e+f x)}{c f (3+2 n) \sqrt{a+a \sec (e+f x)}}-\frac{\left (a^3 c \tan (e+f x)\right ) \operatorname{Subst}\left (\int \frac{(c-c x)^{-\frac{1}{2}+n}}{x} \, dx,x,\sec (e+f x)\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=\frac{6 a^3 (c-c \sec (e+f x))^n \tan (e+f x)}{f (1+2 n) \sqrt{a+a \sec (e+f x)}}+\frac{2 a^3 \, _2F_1\left (1,\frac{1}{2}+n;\frac{3}{2}+n;1-\sec (e+f x)\right ) (c-c \sec (e+f x))^n \tan (e+f x)}{f (1+2 n) \sqrt{a+a \sec (e+f x)}}-\frac{2 a^3 (c-c \sec (e+f x))^{1+n} \tan (e+f x)}{c f (3+2 n) \sqrt{a+a \sec (e+f x)}}\\ \end{align*}
Mathematica [F] time = 8.51105, size = 0, normalized size = 0. \[ \int (a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))^n \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.282, size = 0, normalized size = 0. \begin{align*} \int \left ( a+a\sec \left ( fx+e \right ) \right ) ^{{\frac{5}{2}}} \left ( c-c\sec \left ( fx+e \right ) \right ) ^{n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sec \left (f x + e\right ) + a\right )}^{\frac{5}{2}}{\left (-c \sec \left (f x + e\right ) + c\right )}^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a^{2} \sec \left (f x + e\right )^{2} + 2 \, a^{2} \sec \left (f x + e\right ) + a^{2}\right )} \sqrt{a \sec \left (f x + e\right ) + a}{\left (-c \sec \left (f x + e\right ) + c\right )}^{n}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]